package com.ls.data.service;

import com.ls.data.mapper.WeatherMapper;
import com.ls.interPojo.Weather;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 段成
 * @date 2020/1/9 - 14:12
 */
@Service
public class WeatherService {
    @Autowired
    private WeatherMapper weatherMapper;


    public List<Weather> getDataByCity(String city) {
        return weatherMapper.getDataByCity(city);
    }

    public void insertData(Weather insertData) {
        weatherMapper.insertData(insertData);
    }
}
